package com.jiuyin.dianjing.model;

import android.os.Parcel;
import android.os.Parcelable;

public class TeamMember implements Parcelable {
    public static final Creator<TeamMember> CREATOR = new Creator<TeamMember>() {
        @Override
        public TeamMember createFromParcel(Parcel in) {
            return new TeamMember(in);
        }

        @Override
        public TeamMember[] newArray(int size) {
            return new TeamMember[size];
        }
    };
    public String member_id;
    /**
     * 成员权限（0队长 1管理员 2 成员）
     */
    public int part;
    public String nickname;
    public String header;

    public TeamMember() {
    }

    protected TeamMember(Parcel in) {
        member_id = in.readString();
        part = in.readInt();
        nickname = in.readString();
        header = in.readString();
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(member_id);
        dest.writeInt(part);
        dest.writeString(nickname);
        dest.writeString(header);
    }
}
